From: Marco Trevisan (TreviƱo) Date: Mon, 17 Jun 2019 10:59:01 +0000 (+0200) Subject: appDisplay: Set Adjustment value after allocation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~845^2^2~137 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c1c45f95af56ad4419ed9179db6f2fe7fc8d736e;p=gnome-shell.git appDisplay: Set Adjustment value after allocation AllView's adaptToSize is called as part of viewStack allocation vfunc, and this makes the adjustment value to be reset while relayouting. So, fix this by delaying this using the Meta later that we already had for pageIndicators operations. Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/issues/1392 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index d069a1e82..ea86c81b9 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -632,9 +632,9 @@ var AllView = class AllView extends BaseAppView { this._scrollView.get_effect('fade').fade_edges = true; if (this._availWidth != availWidth || this._availHeight != availHeight || oldNPages != this._grid.nPages()) { - this._adjustment.value = 0; - this._grid.currentPage = 0; Meta.later_add(Meta.LaterType.BEFORE_REDRAW, () => { + this._adjustment.value = 0; + this._grid.currentPage = 0; this._pageIndicators.setNPages(this._grid.nPages()); this._pageIndicators.setCurrentPage(0); });